Skip to content

Conversation

thecrypticace
Copy link
Contributor

Fixes #1160

We were passing the CSS variable straight through when resolving the theme values but this isn't accurate when a prefix is used. The theme variables do not have prefixes but the emitted CSS variables do.

We have to strip the prefix before doing the lookup.

Copy link
Member

@philipp-spiess philipp-spiess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works like a charm

@thecrypticace thecrypticace merged commit deec3cc into main Feb 5, 2025
@thecrypticace thecrypticace deleted the fix/prefixed-equivalents branch February 5, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v4: Prefixed theme values are not used to calculate pixel equivalents
2 participants